﻿using System.Collections.Generic;
using NaK.Bit.DbObject;
using NaK.Bit.Data;

namespace NaK.Bit
{
    public class Database
    {
        private List<Table> _tables = null;

        public List<Table> Tables
        {
            get { return _tables ?? (_tables = GetListOfTables()); }
            set { _tables = value; }
        }

        public List<Table> GetListOfTables()
        {
            DatabaseInfo databaseInfo = new DatabaseInfo();
            return databaseInfo.GetListOfTables();
        }
    }
}
